﻿/*
 * Created by SharpDevelop.
 * User: Administrator
 * Date: 2016/4/20
 * Time: 11:36
 *
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using SharpChannel.Core.Packet;

namespace SharpChannel.Core.Coder
{
	/// <summary>
	/// Description of ICoder.
	/// </summary>
	public interface ICoder
	{
		bool CanDecode(IBufferQueue<byte> bufferQueue);

		byte[] Decode(IBufferQueue<byte> bufferQueue);

		byte[] Encode(byte[] buffer, int offset=0, int length=-1);
	}
}
